//
//  ChangePasswordCellTableViewCell.m
//  TravelFollowYourHeart
//
//  Created by ENERGY on 2017/12/20.
//  Copyright © 2017年 Lwx. All rights reserved.
//

#import "ChangePasswordCellTableViewCell.h"
#define verificationCodeBtnW 180
#define border 40

@interface ChangePasswordCellTableViewCell()
@property (nonatomic, strong)UITextField * contentTextField;
@end

@implementation ChangePasswordCellTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self.contentView addSubview:self.contentTextField];
    }return self;
}

- (UITextField *)contentTextField{
    if (!_contentTextField) {
        _contentTextField = [[UITextField alloc] initWithFrame:CGRectMake(border, 0, verificationCodeBtnW, self.contentView.height)];
        _contentTextField.backgroundColor = [UIColor orangeColor];
        
    }return _contentTextField;
}

@end
